package com.njwb.day15.zqzb.method.review;

import java.lang.reflect.InvocationTargetException;

public class TestDemo02 {
    public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        Class cls = String.class;
        String message = (String) cls.getDeclaredConstructor(String.class).newInstance("HelloWorld");
        System.out.println(message);

    }
}
